LaunchDeskAccessory
LaunchDeskAccessory Launch a desk accessory
OSErr LaunchDeskAccessory (pFileSpec, pDAName);
FSSpecPtr *pFileSpec ; pointer to the file to search
ConstStr255Param pDAName ; resource name of the DA to launch
returns Error Code; 0=no error
Your application can launch desk accessories using the
LaunchDeskAccessory function. Use this function only when your
application needs to launch a desk accessory for some reason other than in
response to the user choosing a desk accessory from the Apple menu. (When the
user chooses any item from the Apple menu that you did not add specifically for
your application, use the OpenDeskAcc function.)
pFileSpec specifies the file to search. Specify NIL for pFileSpec if you want to
search the current resource file and the resource files opened before
it. Otherwise, specify the file using a pointer to an FSSpec record.
pDAName specifies the 'DRVR' resource name of the desk accessory to launch.
Specify NIL in pDAName if you want to launch the first 'DRVR'
resource found in the file as returned by the
Resource Manager. Because the LaunchDeskAccessory
function opens the specified resource file for exclusive access, you
cannot launch more than one desk accessory from the same resource
file.
Returns: an operating system Error Code.
noErr (0) No error
resNotFound (-192) Resource not found

Notes: LaunchDeskAccessory searches the resource fork of the file specified
by the pFileSpec parameter for the desk accessory with the 'DRVR' resource
name specified in the pDAName parameter. If the 'DRVR' resource name is
found, LaunchDeskAccessory launches the desk accessory. If the desk
accessory is already open, it is brought to the front.
If the 'DRVR' resource is in a resource file that is already open by the
current process or if the driver is in the System file and the Option key is
down, LaunchDeskAccessory launches the desk accessory in the application's
heap. Otherwise, the desk accessory is given its own partition and launched
in the system heap.